package com.yiquan.video.mapper;


import com.yiquan.video.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Tag record);

    int insertSelective(Tag record);

    Tag selectByPrimaryKey(Long id);

    Tag getTagByTagId(Long tagId);

    /**
     * 根据tagId跟新
     * @param record
     * @return
     */
    int updateByTagIdSelective(Tag record);

    int updateByPrimaryKey(Tag record);

    List<Tag> listByRefTimes();
}